package com.ericsson.enap.modules.monitor.task;

import com.ericsson.common.quartz.task.ManualTask;
import com.ericsson.enap.modules.monitor.service.CabMonitorService;
import com.ericsson.common.util.LogFileName;
import com.ericsson.common.util.LoggerUtils;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * 设备状态获取任务
 */
@Component
public class CabMonitorTask implements ManualTask {

    @Autowired
    @Qualifier("server")
    public CabMonitorService capMonitorService_Server;
    private Logger log = LoggerUtils.Logger(LogFileName.CabMonitorServerJob);
    @Override
    public void execute() {
        log.info("CabMonitorTask execute start");
        capMonitorService_Server.dealEquipStatus();
        log.info("CabMonitorTask execute end");
    }
}
